<?php if (!isset($v_sval)) exit; ?>
<?php
	$v_album_id = (isset($_REQUEST["hdn_album_id"])) ? $_REQUEST["hdn_album_id"] : 0;
		$v_album_title = (isset($_REQUEST["txt_album_title"])) ? $_REQUEST["txt_album_title"] : 0;
		$v_album_detail = (isset($_REQUEST["txt_album_detail"])) ? $_REQUEST["txt_album_detail"] : 0;
		$v_account_id = (isset($_REQUEST["txt_account_id"])) ? $_REQUEST["txt_account_id"] : 0;

if (!$v_album_id){
	$v_album_id = insertAlbum(
		$v_album_title
			,$v_album_detail
			,$v_account_id
		
		 );
}else{
	updateAlbum(
		$v_album_id
			,$v_album_title
			,$v_album_detail
			,$v_account_id
		
	 );	
}
redir("?a=ACC&acc=ALBU&albu=ALBU&albu=A");
?>	
